<?php

/**
 * plugin admin
 * 
 * @package plugins
 */
class plugin_admin extends Plugin {
	function permission() {
		return $_SESSION['joel']->user->u_type == 'admin' ? true : false;
	}

	function plugin_admin () {
		
	}
	
	function load($obj) {
		// load user
		$users = new User();
		$userlist = $users->getAll();
		
		include(dirname(__FILE__)."/window.php");
	}
}

?>
